﻿// ************************************************************************************************
// Used for Displaying messages at the top of the console
// ************************************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRogue
{
    public static class Message
    {
        // ****************************************************************************************
        // DISPLAY Message
        // ****************************************************************************************
        public static void DisplayMessage(string argMessage)
        {
            //if message is blank, then display a blank
            if (argMessage == "")
            {
                //Set Cursor to 1,1
                Console.SetCursorPosition(1, 1);

                //Write a blank message to clear it out
                Console.Write("                                                                ");
                
                //Leave this method
                return;
            }            
            
            //-------------------------------------------------------------------------------------
            // Display the message that is passed in
            //-------------------------------------------------------------------------------------
            
            //Set Cursor to 1,1
            Console.SetCursorPosition(1, 1);

            //Write the Message
            Console.Write(argMessage);
            

        }
    }
}
